<h1>Contact Us</h1>
<p class="notice"><%= notice %></p>
<%= form_tag send_email_path %>
	<%= hidden_field_tag "other" ,request.env['HTTP_USER_AGENT']  %>
	<p>
		<%= label_tag "Your Name :" %>
		<%= text_field_tag "name" ,nil,:class=>"validate[required]"%>
	</p>
	<p>
		<%= label_tag "Your Email Address :" %>
		<%= text_field_tag "email" ,nil,:class=>"validate[[required], custom[email]]"%>
	</p>
	<p>
		<%= label_tag "Subject :" %>
		<%= text_field_tag "title" ,nil,:class=>"validate[required]"%>
	</p>
	<p>
		<%= label_tag "Description:" %>
		<%= text_area_tag "description",nil,:class=>"validate[required]"%>
	</p>
	
	<%= submit_tag "Submit" %>
<script>
		jQuery(document).ready(function(){
			// binds form submission and fields to the validation engine
			jQuery("form").validationEngine('attach', {validationEventTrigger : false});
		});
</script>



